<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <!-- 有字符串:"aaeeecdddf"利用代码统计每一个字符出现的次数结果:{"a":2,"e":3,"c":1,"d":3,"f":1} -->

    <!-- 字符串遍历查找，如果是同样的数字那么放在一起 -->
    <script>
        let src="aaeeecdddf"
        let arr=""
        let a=0
        for(let i=0;i<src.length;i++){
            for(let v=0;v<src.length;v++){
                if(src.indexOf(i)==src.indexOf(v)){
                
            }
            }

        }
        console.log(a);
    </script>
</body>
</html>